<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
//路由组
Route::group(['middleware'=>'adminlogin'],function(){
	//隐式控制器
	//后台
	Route::Controller('/admin/','admin\AdminController');
	//后台用户控制器
	Route::Controller('/admin/user','admin\UserController');
	//后台商品分类控制器
	Route::Controller('/admin/cate','admin\CateController');
	//后台商品控制器
	Route::Controller('/admin/goods','admin\GoodsController');
});
//后台登录路由
Route::Controller('/admin/login','admin\LoginController');


//前台注册路由
Route::get('/register','admin\LoginController@register');

